package com.ruoyi.health.domain;

import java.util.List;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 平台用户管理对象 user
 * 
 * @author dalian
 * @date 2023-08-06
 */
public class User extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 用户id */
    private Long id;

    /** 用户名 */
    @Excel(name = "用户名")
    private String username;

    /** 头像 */
    @Excel(name = "头像")
    private String avatarUrl;

    /** 手机 */
    @Excel(name = "手机")
    private String phone;

    /** 身份证号 */
    @Excel(name = "身份证号")
    private String idNum;

    /** 详细地址 */
    @Excel(name = "详细地址")
    private String address;

    /** 密码 */
    @Excel(name = "密码")
    private String password;

    /** 真实姓名 */
    @Excel(name = "真实姓名")
    private String realname;

    /** 我的家人信息 */
    private List<Family> familyList;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setUsername(String username) 
    {
        this.username = username;
    }

    public String getUsername() 
    {
        return username;
    }
    public void setAvatarUrl(String avatarUrl) 
    {
        this.avatarUrl = avatarUrl;
    }

    public String getAvatarUrl() 
    {
        return avatarUrl;
    }
    public void setPhone(String phone) 
    {
        this.phone = phone;
    }

    public String getPhone() 
    {
        return phone;
    }
    public void setIdNum(String idNum) 
    {
        this.idNum = idNum;
    }

    public String getIdNum() 
    {
        return idNum;
    }
    public void setAddress(String address) 
    {
        this.address = address;
    }

    public String getAddress() 
    {
        return address;
    }
    public void setPassword(String password) 
    {
        this.password = password;
    }

    public String getPassword() 
    {
        return password;
    }
    public void setRealname(String realname) 
    {
        this.realname = realname;
    }

    public String getRealname() 
    {
        return realname;
    }

    public List<Family> getFamilyList()
    {
        return familyList;
    }

    public void setFamilyList(List<Family> familyList)
    {
        this.familyList = familyList;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("username", getUsername())
            .append("avatarUrl", getAvatarUrl())
            .append("phone", getPhone())
            .append("idNum", getIdNum())
            .append("address", getAddress())
            .append("password", getPassword())
            .append("realname", getRealname())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .append("familyList", getFamilyList())
            .toString();
    }
}
